class CreateTeachers < ActiveRecord::Migration
  def self.up
	create_table :teachers do |t|
		t.column :code, :string, :limit => 15, :null => false
		t.column :name,:string,  :limit => 80
		t.column :pic,:string,  :limit => 80
		t.column :karma, :integer, :default=>0
		t.column :delete, :string, :limit => 3, :default => 'NO', :null => false
		t.column :create_on, :datetime
		t.column :update_on, :datetime

	end
  end

	def self.down
	  
	  drop_table  teachers
	end
end
